/*
 * Copyright (c) 2023 huipei.x
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.xphsc.kubernetes.core.query;
/**
 * {@link }
 * @author <a href="xiongpeih@163.com">huipei.x</a>
 * @description: Pod Logs Query
 * @since 1.0.0
 */
public class PodLogsQuery {
    /**
     * namespace – object name and auth scope, such as for teams and projects (required
     */
    private String namespace;
    /**
     *    name of the Deployment (required)
     */
    private String name;
    private String container;
    public static PodLogsQuery.Builder builder() {
        return new PodLogsQuery.Builder();
    }

    private PodLogsQuery(PodLogsQuery.Builder builder) {
        this.namespace = builder.namespace;
        this.name = builder.name;
        this.container = builder.container;

    }


    public static class Builder {
        private String namespace;
        private String name;
        private String container;


        public Builder() {
        }
        /**
         * namespace – object name and auth scope, such as for teams and projects (required
         */
        public <T> PodLogsQuery.Builder namespace(String namespace) {
            this.namespace = namespace;
            return this;
        }
        /**
         *    name of the Deployment (required)
         */
        public <T> PodLogsQuery.Builder name(String name) {
            this.name = name;
            return this;
        }

        public <T> PodLogsQuery.Builder container(String container) {
            this.container = container;
            return this;
        }


        public PodLogsQuery build() {
            return new PodLogsQuery(this);
        }
    }
    public String namespace() {
        return namespace;
    }

    public String name() {
        return name;
    }

    public String container() {
        return container;
    }
}
